function ts = parseDataFile(audioDataFile, analysedFile)



[cols,fs] = aiffread(audioDataFile);
cols = cols(:,3);
cols = cols(1:fs/100:end);
%cols = resample(cols,fs,441);
t = [0:length(cols)-1]/100;
% Create timeseries
ts = timeseries(cols,t);
dots = strfind(analysedFile,'.');
dashes= strfind(audioDataFile,'-');
ts.Name = [analysedFile(1:dots(1)-1) '-'  audioDataFile(dashes(5)+1:dashes(6)-1)];
ts.DataInfo.UserData.audiofn = analysedFile;
ts.DataInfo.UserData.fn = audioDataFile;
